VERSION = 1.0.0


objects = main.o crc.o md5.o read.o thread.o hashmap.o
CFLAGS = -O2
fast-stat : $(objects) 
	@echo -e "Linking......\c"
	@gcc -o fast-stat $(objects) -lpthread
	@echo "Finished!"

main.o : main.c comm.h
	gcc -c $(CFLAGS) main.c

crc.o :crc.c
	gcc -c $(CFLAGS) crc.c

md5.o :md5.c
	gcc -c $(CFLAGS) md5.c

read.o :read.c
	gcc -c $(CFLAGS) read.c

thread.o :thread.c
	gcc -c $(CFLAGS) thread.c

hashmap.o :hashmap.c
	gcc -c $(CFLAGS) hashmap.c

clean:
	rm -rf $(objects) fast-stat.exe
    
